package com.spring.cloub.study.event;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * created by YDW
 */
@RestController
@RequestMapping
public class HaController {
    @GetMapping("/test")
    public  String index(HttpServletRequest request){
        return request.getServerName();
    }
}
